import 'package:environmental_les_app/common/style/colours.dart';
import 'package:flutter/material.dart';

class TextBgContainer extends StatelessWidget {
  final Widget child;

  const TextBgContainer({super.key, required this.child});

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 8),
      decoration: BoxDecoration(
        borderRadius: BorderRadius.circular(8),
        gradient: LinearGradient(
          colors: [Colours.bgF4F7FD, Colours.bgF4F7FD.withOpacity(0.0)],
          begin: Alignment.centerLeft,
          end: Alignment.centerRight,
        ),
      ),
      child: child,
    );
  }
}
